#include<bits/stdc++.h>
using namespace std;

class Solution {
public:
    int finalValueAfterOperations(vector<string>& operations) {
        int ans = 0;
        for(int i = 0; i < operations.size(); i++){
            if(operations[i][1] == '+')ans++;
            else ans--;
        }
        return ans;
    }
};

/**
 * 2021.9.19
 * 周赛简单
 */